iframe {
  height: 550px;
  width: 100%;
  background-color: white;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  text-transform: none;
}

.reveal section img {
  border: 0;
  background-color: #eeeeee;
}

.reveal section img.img-300 {
  height: 300px;
}

.reveal section img.img-450 {
  height: 450px;
}

.reveal section img.img-500 {
  height: 500px;
}

.reveal section img.img-550 {
  height: 550px;
}

.reveal section img.img-left {
  float: left;
  width: 49%;
}

.reveal section img.img-right {
  float: right;
  width: 49%;
}

.reveal section img.img-code {
  position: absolute;
  top: 30%;
  right: 5%;
  float: right;
  max-width: 30%;
}

.print-pdf .reveal section img.img-code {
  display: none;
}
  

/* .reveal section .img-h-50 img {
  max-height: 50%;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
} */

.reveal .hljs .line { 
  font-family: Fira Code, Fantasque Sans Mono, DejaVu Mono, Consolas, 'Courier New', monospace, Microsoft YaHei;
  display: block;
  width: 100%;
}

.reveal .hljs .line.focus { opacity: 1; }
.reveal .hljs.focus .line:not(.focus) { opacity: 0.2; }
.reveal .hljs .line:hover { opacity: 1; }

.print-pdf .reveal pre code {
  min-height: 550px;
}

/* .reveal .slides section .fragment {
  visibility: visible;
  display: none;
}

.reveal .slides section .fragment.current-fragment {
  display: block;
} */

.reveal .slides section .fragment.current-only.current-fragment {
  display: block;
}

.reveal .slides section .fragment.current-only {
  visibility: visible;
  display: none;
}

/* .slide-background.present iframe {
  height: 99vh;
} */

.iframe-source {
  position: fixed;
  bottom: 0px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  margin-top: 0px;
  width: 100%;
  text-align: center;
  padding: 7px 7px 7px 7px;
  /* background-color: #BED4EB;
  background-color: hsl(200, 60%, 15%); */
  background-color: #222222;
  font-size: 12px;
  color: white;
  z-index: 20; /* .progress is 10 and .controls is 30 */
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: opacity .15s ease-in-out;
  -moz-transition: opacity .15s ease-in-out;
  -ms-transition: opacity .15s ease-in-out;
  -o-transition: opacity .15s ease-in-out;
  transition: opacity .15s ease-in-out;
  /* border-radius: 10px; */
  /* box-shadow: 0 1px 0 rgba(12,13,14,0.1), 0 1px 3px rgba(12,13,14,0.1), 0 4px 20px rgba(12,13,14,0.035), 0 1px 1px rgba(12,13,14,0.025); */
}

.iframe-source:hover {
  opacity: 1;
  filter: alpha(opacity=100);
}

.iframe-source a {
  color: #42affa;
  text-decoration: none;
  -webkit-transition: color .15s ease;
  -moz-transition: color .15s ease;
  transition: color .15s ease; 
}

.iframe-source a:hover {
  color: #8dcffc;
  text-shadow: none;
  border: none; 
}

.reveal .slides section {
  font-family: Microsoft YaHei;
  line-height: 120%;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  font-family: Microsoft YaHei;
}

.reveal .slides section .mermaidSvg {
  font-size: 13px;
  line-height: 100%;
}

.print-pdf .reveal .slides section .mermaidSvg {
  transform: scale(0.70);
}

/* .reveal .slides section div.mermaidSvg object, .reveal .slides section div.mermaidSvg foreignObject, .reveal .slides section div.mermaidSvg embed {
  font-size: 13px;
  zoom: 2;
} */

.print-pdf .reveal .iframe-source {
  position: absolute;
  bottom: 0px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  margin-top: 0px;
  width: 100%;
  text-align: center;
  padding: 7px 7px 7px 7px;
  background-color: #222222;
  font-size: 13px;
  color: white;
  z-index: 40; /* .progress is 10 and .controls is 30 */
  opacity: 1;
  filter: alpha(opacity=100);
}

.print-pdf .reveal .iframe-source a {
  color: #42affa;
  text-decoration: none;
  -webkit-transition: color .15s ease;
  -moz-transition: color .15s ease;
  transition: color .15s ease; 
}

.print-pdf .reveal .iframe-source a:hover {
  color: #8dcffc;
  text-shadow: none;
  border: none; 
}

/**
  Using !important to override element style
*/
.print-pdf .reveal .slides section[data-background-iframe] {
  width: 100vw !important;
  height: 100vh !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
  top: 0px !important;
  left: 0px !important;
}

.reveal a.figcaption {
  font-size: 14px;
  text-align: center;
  display: block;
}

.reveal .figcaption:before {
  content: "Source: ";
  color: rgb(109,109,109);
  font-size: 14px;
  text-align: center;
}

.reveal .figcaption.see-also:before {
  content: "See also: ";
}

.img-ref {
  /* position: relative; */
}

.img-ref:hover {
  cursor: pointer;
}

.img-pop {
  position: absolute;
  visibility: hidden;
  right: 10vw;
  top: 10vh;
  min-width: 15vw;
  width: 50vw;
  height: 80vh;
  float: right;
}
.img-ref:hover + .img-pop {
  visibility: visible;
}

.reveal-fancybox .fancybox-slide .fancybox-image-wrap {
  background: #eeeeee;
  font-size: 13px;
  line-height: 100%;
}

.reveal a[data-fancybox] {
  color:inherit;
  transition: none;
}

.reveal a[data-fancybox]:hover {
  color:inherit;
}
